package com.changgou.goods.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Author : 残影
 * @Date: 2020/7/28 16:50
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_category")
@ApiModel("商品类目")
public class Category implements Serializable {
    private static final long serialVersionUID = 5018351296601911414L;
    @Id
    @ApiModelProperty("分类id")
    private Integer id;

    @ApiModelProperty("分类名称")
    private String name;

    @ApiModelProperty("商品数量")
    private Integer goodsNum;

    @ApiModelProperty("是否显示")
    private String isShow;

    @ApiModelProperty("是否导航")
    private String isMenu;

    @ApiModelProperty("排序")
    private Integer seq;

    @ApiModelProperty("上级id")
    private Integer parentId;

    @ApiModelProperty("模板id")
    private Integer templateId;
}